#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author Jmz

from gevent import monkey,spawn,joinall;monkey.patch_all()
import time


x = 1

def set(num):
    x = num
    print(x,id(x))
    time.sleep(1)
    print(x, id(x))



if __name__ == '__main__':
    g_l =[]
    for i in range(1,4):
        g_l.append(spawn(set,i))

    joinall(g_l)



